Skip to main content

mobileRestorePurchases

Type

command

Summary

Instructs the App Store or Marketplace to re-send notifications of previously completed purchases.

Syntax

mobileRestorePurchases

Description

Use the mobileRestorePurchases command to instruct the App Store or Marketplace to re-send notifications of previously completed purchases.

The mobileRestorePurchases command instructs the App Store or Marketplace to re-send notifications of previously completed purchases.

This would typically be called the first time an app is run after installation on a new device to restore any items bought through the app.

Examples

if tDeviceFirstRun is true then
mobileRestorePurchases
end if

message: purchaseStateUpdate

command: mobilePurchaseSet, mobileDisablePurchaseUpdates, mobilePurchaseVerify, iphoneRequestProductDetails, mobilePurchaseSendRequest, mobilePurchaseConfirmDelivery, mobileEnablePurchaseUpdates, mobilePurchaseCreate

function: mobilePurchaseState, mobilePurchaseError, mobileCanMakePurchase, mobilePurchaseGet, mobilePurchases

Compatibility and Support

Introduced

LiveCode 5.0.1

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?